package com.itheima.test6;

import java.io.File;

/**
 * @Author:gy
 * @Date: 2025/08/27 15:56
 * @Description:
 */
public class Demo {
    public static void main(String[] args) {
        method1();
        method2();
        File parentFile = new File("D:\\班级\\93期\\day09-Stream&File\\day09-Stream&File\\ppt");
        File file = new File(parentFile, "File类.ppt");
        System.out.println(file);

    }

    private static void method2() {
        File file = new File("D:\\班级\\93期\\day09-Stream&File\\day09-Stream&File\\ppt","File类.ppt");
        System.out.println(file);
        File file1 = new File("D:\\班级\\93期\\day09-Stream&File\\day09-Stream&File\\ppt\\File类.ppt");
    }

    private static void method1() {
        File file = new File("D:\\班级\\93期\\day09-Stream&File\\day09-Stream&File\\笔记\\haha.txt");
        System.out.println(file);
    }
}
